package string;
//若需要频繁修改,则用StringBuilder
public class StringAndStringBuilderDemo {
    public static void main(String[] args ){
        StringBuilder builder=new StringBuilder("a");
        for (int i=1;i<10000000;i++){
            builder.append(i);
        }
        System.out.println("执行完毕");
    }
}
